#include "MyConmmands.h"

#define LOCTEXT_NAMESPACE "MyCommands"

FMyConmmands::FMyConmmands() : TCommands<FMyConmmands>(
	                             TEXT("MyEditor"),
	                             NSLOCTEXT("Contexts", "MyEditor", "My Editor"),
	                             NAME_None,
	                             FCoreStyle::Get().GetStyleSetName()
                             ){
	
}

void FMyConmmands::RegisterCommands(){
	UI_COMMAND(OpenFileCommand, "打开文件", "打开文件", EUserInterfaceActionType::Button, FInputChord(EModifierKey::Control, EKeys::O))
	UI_COMMAND(CloseFileCommand, "关闭文件", "关闭文件", EUserInterfaceActionType::Button, FInputChord(EModifierKey::Control, EKeys::C))
	UI_COMMAND(SaveFileCommand, "保存文件", "保存文件", EUserInterfaceActionType::Button, FInputChord(EModifierKey::Control, EKeys::S))
}

#undef LOCTEXT_NAMESPACE